package com.library.management.controller;

import com.library.management.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 健康检查控制器
 */
@Api(tags = "系统健康检查")
@RestController
@RequestMapping("/api/health")
public class HealthController {

    /**
     * 健康检查接口
     * @return 健康状态
     */
    @ApiOperation(value = "健康检查", notes = "用于测试系统是否正常运行，无需认证")
    @GetMapping
    public Result<String> healthCheck() {
        return Result.success("系统正常运行");
    }
} 